<html>
<body>
<?php
if ($_POST['fname'] == 'quit') die('uh oh');
?>
<form action="#" method="post">
Name:: <input type="text" name="fname" />
Age: <input type="text" name="lname" />
<input type="submit" />

</form>
<?php
//echo $_POST['fname'];
	if ($_POST['fname'] == '' || $_POST['lname'] == '')
	{
		echo "no  names found";
	}
	else
	{
		$_SESSION["fname"] = $_POST['fname'];
		$_SESSION["lname"] = $_POST['lname'];
		echo $_SESSION["fname"] . '<br>';
		echo $_SESSION["lname"] . '<br>';
	}
?>
</body>
</html>
